package cn.xt.dao.orders;

import cn.xt.bean.Orders;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

/**
 * @author shkstart
 * @date 2018/11/26-8:51
 */
public interface OrdersDao {
    //根据结束时间，订单支付状态判断订单状态
    public List<Orders> listOrders(@Param("users_id") int users_id, @Param("zfzt") int zfzt);

    //根据离开日期和房东id判断房东订单的状态 已完成状态
    public List<Orders> fdListOrders(int fdusers_id);

    //根据离开日期和房东id判断房东订单的状态 订单进行中
    public List<Orders> fdListOrders1(int fdusers_id);

    //取消订单
    public int delOrders(@Param("orders_id")String orders_id);

    //添加订单
    public int addOrders(Orders orders);

    //查詢全部訂單条数
    public int ordersCount(@Param("users_id")int users_id);

    //查詢未支付訂單条数
    public int ordersWCount(@Param("users_id")int users_id);

    //查询已完成的订单条数
    public int ordersYCount(@Param("users_id")int users_id);

    //查询订单信息
    public Orders findOrdersId(@Param("orders_id")long orders_id);

}
